package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class OrderdetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OrderdetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdnoIsNull() {
            addCriterion("odno is null");
            return (Criteria) this;
        }

        public Criteria andOdnoIsNotNull() {
            addCriterion("odno is not null");
            return (Criteria) this;
        }

        public Criteria andOdnoEqualTo(String value) {
            addCriterion("odno =", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoNotEqualTo(String value) {
            addCriterion("odno <>", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoGreaterThan(String value) {
            addCriterion("odno >", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoGreaterThanOrEqualTo(String value) {
            addCriterion("odno >=", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoLessThan(String value) {
            addCriterion("odno <", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoLessThanOrEqualTo(String value) {
            addCriterion("odno <=", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoLike(String value) {
            addCriterion("odno like", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoNotLike(String value) {
            addCriterion("odno not like", value, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoIn(List<String> values) {
            addCriterion("odno in", values, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoNotIn(List<String> values) {
            addCriterion("odno not in", values, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoBetween(String value1, String value2) {
            addCriterion("odno between", value1, value2, "odno");
            return (Criteria) this;
        }

        public Criteria andOdnoNotBetween(String value1, String value2) {
            addCriterion("odno not between", value1, value2, "odno");
            return (Criteria) this;
        }

        public Criteria andBnoIsNull() {
            addCriterion("bno is null");
            return (Criteria) this;
        }

        public Criteria andBnoIsNotNull() {
            addCriterion("bno is not null");
            return (Criteria) this;
        }

        public Criteria andBnoEqualTo(String value) {
            addCriterion("bno =", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotEqualTo(String value) {
            addCriterion("bno <>", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThan(String value) {
            addCriterion("bno >", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThanOrEqualTo(String value) {
            addCriterion("bno >=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThan(String value) {
            addCriterion("bno <", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThanOrEqualTo(String value) {
            addCriterion("bno <=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLike(String value) {
            addCriterion("bno like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotLike(String value) {
            addCriterion("bno not like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoIn(List<String> values) {
            addCriterion("bno in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotIn(List<String> values) {
            addCriterion("bno not in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoBetween(String value1, String value2) {
            addCriterion("bno between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotBetween(String value1, String value2) {
            addCriterion("bno not between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andOrrnoIsNull() {
            addCriterion("orrno is null");
            return (Criteria) this;
        }

        public Criteria andOrrnoIsNotNull() {
            addCriterion("orrno is not null");
            return (Criteria) this;
        }

        public Criteria andOrrnoEqualTo(String value) {
            addCriterion("orrno =", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotEqualTo(String value) {
            addCriterion("orrno <>", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoGreaterThan(String value) {
            addCriterion("orrno >", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoGreaterThanOrEqualTo(String value) {
            addCriterion("orrno >=", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLessThan(String value) {
            addCriterion("orrno <", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLessThanOrEqualTo(String value) {
            addCriterion("orrno <=", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLike(String value) {
            addCriterion("orrno like", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotLike(String value) {
            addCriterion("orrno not like", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoIn(List<String> values) {
            addCriterion("orrno in", values, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotIn(List<String> values) {
            addCriterion("orrno not in", values, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoBetween(String value1, String value2) {
            addCriterion("orrno between", value1, value2, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotBetween(String value1, String value2) {
            addCriterion("orrno not between", value1, value2, "orrno");
            return (Criteria) this;
        }

        public Criteria andOdnumberIsNull() {
            addCriterion("odNumber is null");
            return (Criteria) this;
        }

        public Criteria andOdnumberIsNotNull() {
            addCriterion("odNumber is not null");
            return (Criteria) this;
        }

        public Criteria andOdnumberEqualTo(String value) {
            addCriterion("odNumber =", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberNotEqualTo(String value) {
            addCriterion("odNumber <>", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberGreaterThan(String value) {
            addCriterion("odNumber >", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberGreaterThanOrEqualTo(String value) {
            addCriterion("odNumber >=", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberLessThan(String value) {
            addCriterion("odNumber <", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberLessThanOrEqualTo(String value) {
            addCriterion("odNumber <=", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberLike(String value) {
            addCriterion("odNumber like", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberNotLike(String value) {
            addCriterion("odNumber not like", value, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberIn(List<String> values) {
            addCriterion("odNumber in", values, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberNotIn(List<String> values) {
            addCriterion("odNumber not in", values, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberBetween(String value1, String value2) {
            addCriterion("odNumber between", value1, value2, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdnumberNotBetween(String value1, String value2) {
            addCriterion("odNumber not between", value1, value2, "odnumber");
            return (Criteria) this;
        }

        public Criteria andOdtitleIsNull() {
            addCriterion("odTitle is null");
            return (Criteria) this;
        }

        public Criteria andOdtitleIsNotNull() {
            addCriterion("odTitle is not null");
            return (Criteria) this;
        }

        public Criteria andOdtitleEqualTo(String value) {
            addCriterion("odTitle =", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleNotEqualTo(String value) {
            addCriterion("odTitle <>", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleGreaterThan(String value) {
            addCriterion("odTitle >", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleGreaterThanOrEqualTo(String value) {
            addCriterion("odTitle >=", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleLessThan(String value) {
            addCriterion("odTitle <", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleLessThanOrEqualTo(String value) {
            addCriterion("odTitle <=", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleLike(String value) {
            addCriterion("odTitle like", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleNotLike(String value) {
            addCriterion("odTitle not like", value, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleIn(List<String> values) {
            addCriterion("odTitle in", values, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleNotIn(List<String> values) {
            addCriterion("odTitle not in", values, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleBetween(String value1, String value2) {
            addCriterion("odTitle between", value1, value2, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdtitleNotBetween(String value1, String value2) {
            addCriterion("odTitle not between", value1, value2, "odtitle");
            return (Criteria) this;
        }

        public Criteria andOdpriceIsNull() {
            addCriterion("odPrice is null");
            return (Criteria) this;
        }

        public Criteria andOdpriceIsNotNull() {
            addCriterion("odPrice is not null");
            return (Criteria) this;
        }

        public Criteria andOdpriceEqualTo(String value) {
            addCriterion("odPrice =", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceNotEqualTo(String value) {
            addCriterion("odPrice <>", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceGreaterThan(String value) {
            addCriterion("odPrice >", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceGreaterThanOrEqualTo(String value) {
            addCriterion("odPrice >=", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceLessThan(String value) {
            addCriterion("odPrice <", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceLessThanOrEqualTo(String value) {
            addCriterion("odPrice <=", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceLike(String value) {
            addCriterion("odPrice like", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceNotLike(String value) {
            addCriterion("odPrice not like", value, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceIn(List<String> values) {
            addCriterion("odPrice in", values, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceNotIn(List<String> values) {
            addCriterion("odPrice not in", values, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceBetween(String value1, String value2) {
            addCriterion("odPrice between", value1, value2, "odprice");
            return (Criteria) this;
        }

        public Criteria andOdpriceNotBetween(String value1, String value2) {
            addCriterion("odPrice not between", value1, value2, "odprice");
            return (Criteria) this;
        }

        public Criteria andOddescribeIsNull() {
            addCriterion("odDescribe is null");
            return (Criteria) this;
        }

        public Criteria andOddescribeIsNotNull() {
            addCriterion("odDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andOddescribeEqualTo(String value) {
            addCriterion("odDescribe =", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeNotEqualTo(String value) {
            addCriterion("odDescribe <>", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeGreaterThan(String value) {
            addCriterion("odDescribe >", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeGreaterThanOrEqualTo(String value) {
            addCriterion("odDescribe >=", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeLessThan(String value) {
            addCriterion("odDescribe <", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeLessThanOrEqualTo(String value) {
            addCriterion("odDescribe <=", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeLike(String value) {
            addCriterion("odDescribe like", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeNotLike(String value) {
            addCriterion("odDescribe not like", value, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeIn(List<String> values) {
            addCriterion("odDescribe in", values, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeNotIn(List<String> values) {
            addCriterion("odDescribe not in", values, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeBetween(String value1, String value2) {
            addCriterion("odDescribe between", value1, value2, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOddescribeNotBetween(String value1, String value2) {
            addCriterion("odDescribe not between", value1, value2, "oddescribe");
            return (Criteria) this;
        }

        public Criteria andOdstateIsNull() {
            addCriterion("odState is null");
            return (Criteria) this;
        }

        public Criteria andOdstateIsNotNull() {
            addCriterion("odState is not null");
            return (Criteria) this;
        }

        public Criteria andOdstateEqualTo(Integer value) {
            addCriterion("odState =", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateNotEqualTo(Integer value) {
            addCriterion("odState <>", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateGreaterThan(Integer value) {
            addCriterion("odState >", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("odState >=", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateLessThan(Integer value) {
            addCriterion("odState <", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateLessThanOrEqualTo(Integer value) {
            addCriterion("odState <=", value, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateIn(List<Integer> values) {
            addCriterion("odState in", values, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateNotIn(List<Integer> values) {
            addCriterion("odState not in", values, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateBetween(Integer value1, Integer value2) {
            addCriterion("odState between", value1, value2, "odstate");
            return (Criteria) this;
        }

        public Criteria andOdstateNotBetween(Integer value1, Integer value2) {
            addCriterion("odState not between", value1, value2, "odstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}